package com.lhj.bootdemo.designmode.factory.idcard;

import com.lhj.bootdemo.designmode.factory.framework.Product;

/**
 * @author lhj
 * @version 1.0
 * @date 2022/4/5 11:36 上午
 * @description:
 */

public class MyIDCard extends Product {

    private String owner;

    public MyIDCard(String owner) {
        this.owner = owner;
    }

    @Override
    public void use() {
        System.out.println("MyIDCard 被定义了,owner:" + getOwner());
    }

    public String getOwner() {
        return owner;
    }

    public void setOwner(String owner) {
        this.owner = owner;
    }
}
